import service from "@/service/http"

export default {
  // 查看配置列表
  getConfigList(data) {
    return service({
      method: "get",
      url: "/eks-service/op/cfg_list",
      params: data
    })
  },
  // 增加配置
  addConfig(data) {
    return service({
      method: "post",
      url: "/eks-service/op/add_cfg",
      data
    })
  },
  // 更新配置
  updateConfig(data) {
    return service({
      method: "put",
      url: "/eks-service/op/update_cfg",
      data
    })
  },
  // 删除配置
  deleteConfig(data) {
    return service({
      method: "delete",
      url: "/eks-service/op/delete_cfg",
      params: data
    })
  }
}